package wahadlo.gui;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JButton;
import javax.swing.JOptionPane;
import javax.swing.JPanel;

/**
 * Komponent zawiera informacje o autorze aplikacji.
 * 
 * @author Koziołek
 * 
 */
public class AuthorComponent extends JPanel {
	private static final long serialVersionUID = 1L;

	public AuthorComponent() {
		JButton button = new JButton("O Autorze");
		button.addActionListener(new ActionListener() {

			public void actionPerformed(ActionEvent e) {
				String about = "Autor: Marta Jastrzębska";
				JOptionPane.showMessageDialog(null, about, "O autorze",
						JOptionPane.INFORMATION_MESSAGE);

			}
		});
		this.add(button);
	}
}
